package cn.fanqinghong.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * FAN
 * 2022/6/8  15:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private Integer pageSize;
    private Integer currentPage;
    private String keyword;

    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
